import request from '../utils/request'
import cache from '../utils/cache'

export function filterRegion(uri) {
    const url = window.$mock ? '/mock/filterRegions.json' : uri || '/epinews/riskModel/regionFilter'
    const cacheData = cache.get(url)
    if (cacheData) {
        return cacheData
    }

    return request({
        // url: "riskModel/regionFilter",
        url,
        method: 'get',
    })
}
